<!DOCTYPE html>
<html lang="en">
  <head>
    <title>LightnessPair Class Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
  </head>
  <body>
    <a name="//apple_ref/swift/Class/LightnessPair" class="dashAnchor"></a>
    <a title="LightnessPair Class Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html">ColorSetKit Docs</a> (100% documented)</p>
        <p class="header-right"><a href="https://github.com/DigiDNA/ColorSetKit"><img src="../img/gh.png"/>View on GitHub</a></p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html">ColorSetKit Reference</a>
        <img id="carat" src="../img/carat.png" />
        LightnessPair Class Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/ColorPair.html">ColorPair</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ColorSet.html">ColorSet</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ColorSetStream.html">ColorSetStream</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/LightnessPair.html">LightnessPair</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/LightnessVariant.html">LightnessVariant</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Extensions/NSColor.html">NSColor</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Functions.html">Functions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Functions.html#/s:11ColorSetKit2peoiyyAA0aB6StreamC_SStF">+=(_:_:)</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:11ColorSetKit2peoiyyAA0aB6StreamC_SbtF">+=(_:_:)</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:11ColorSetKit2peoiyyAA0aB6StreamC_SdtF">+=(_:_:)</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:11ColorSetKit2peoiyyAA0aB6StreamC_SftF">+=(_:_:)</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:11ColorSetKit2peoiyyAA0aB6StreamC_So7NSColorCtF">+=(_:_:)</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:11ColorSetKit2peoiyyAA0aB6StreamC_s5UInt8VtF">+=(_:_:)</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:11ColorSetKit2peoiyyAA0aB6StreamC_s6UInt16VtF">+=(_:_:)</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:11ColorSetKit2peoiyyAA0aB6StreamC_s6UInt32VtF">+=(_:_:)</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:11ColorSetKit2peoiyyAA0aB6StreamC_s6UInt64VtF">+=(_:_:)</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>LightnessPair</h1>
              <div class="declaration">
                <div class="language">
                  <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="kd">class</span> <span class="kt">LightnessPair</span> <span class="p">:</span> <span class="kt">NSObject</span></code></pre>

                </div>
              </div>
            <p>Represents a pair of lightness variants for a specific color.</p>

<p>Lightness means the <code>L</code> component in the <code>HSL</code> color representation.</p>

<p>Lightness variants are used in pairs, making it easy to handle dark
mode for user interfaces.<br>
Requestting a specific lightness variant for a color will automatically
return the corresponding value in the pair if dark mode is on.</p>
<div class="aside aside-authors">
    <p class="aside-title">Authors</p>
    <p>Jean-David Gadina</p>

</div>
<div class="aside aside-seealso">
    <p class="aside-title">Seealso</p>
    <p><code><a href="../Classes/LightnessVariant.html">LightnessVariant</a></code></p>

</div>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ColorSetKit@objc(cs)LightnessPair(py)lightness1"></a>
                    <a name="//apple_ref/swift/Property/lightness1" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ColorSetKit@objc(cs)LightnessPair(py)lightness1">lightness1</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The first lightness variant.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="kd">dynamic</span> <span class="k">var</span> <span class="nv">lightness1</span><span class="p">:</span> <span class="kt"><a href="../Classes/LightnessVariant.html">LightnessVariant</a></span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@ColorSetKit@objc(cs)LightnessPair(py)lightness2"></a>
                    <a name="//apple_ref/swift/Property/lightness2" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@ColorSetKit@objc(cs)LightnessPair(py)lightness2">lightness2</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The second lightness variant.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@objc</span>
<span class="kd">public</span> <span class="kd">dynamic</span> <span class="k">var</span> <span class="nv">lightness2</span><span class="p">:</span> <span class="kt"><a href="../Classes/LightnessVariant.html">LightnessVariant</a></span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>(c) 2019 DigiDNA - <a class="link" href="http://www.imazing.com" target="_blank" rel="external">www.imazing.com</a></p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.11.1</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
